{config_load file="$language/lang.conf" section="index"}
<div class="content-block">
	<div class="con-top"><div class="st-left"></div><div class="st-right"></div></div>
	<div class="con-cen">

		<div class="con-cen-cen">
			{if $CATEGORIES_IMAGE}<div class="cat-img"><img src="{$CATEGORIES_IMAGE}" alt="{$CATEGORIES_NAME}" /></div>{/if}
			<div class="{if $CATEGORIES_IMAGE}cat-desc{else}cat-desc2{/if}">
				<h2 class="bold" title="{$CATEGORIES_HEADING_TITLE}">{$CATEGORIES_NAME}</h2>
				{if $CATEGORIES_DESCRIPTION}{$CATEGORIES_DESCRIPTION}{/if}
			</div>
			<div class="clear"></div>
		</div>

		<div class="cat-sort-prod-menu">
			<div class="cat-sort">
				{#text_sort#}
				<a href="{$LINK_sort_name_asc}">{#text_sort_name_asc#}</a> | 
				<a href="{$LINK_sort_name_desc}">{#text_sort_name_desc#}</a> | 
				<a href="{$LINK_sort_price_asc}">{#text_sort_price_asc#}</a> | 
				<a href="{$LINK_sort_price_desc}">{#text_sort_price_desc#}</a>
			</div>
			<div class="cat-prod-page">
				<form id="prod-soft-menu">
					<input type="hidden" name="select value" />
					<select name="sel-pages" size="1" onchange="top.location.href = this.options[this.selectedIndex].value;">
						<option selected value="#">{#text_products_per_page#}</option>
						<option value="{$LINK_PAGE}10">10</option>
						<option value="{$LINK_PAGE}20">20</option>
						<option value="{$LINK_PAGE}50">50</option>
						<option value="{$LINK_PAGE}100">100</option>
						<option value="{$LINK_PAGE}500">500</option>
					</select>
				</form>
			</div>
			<div class="clear"></div>
		</div>

	</div>
	<div class="con-foo gray"><div class="gb-left"></div><div class="gb-right"></div></div>
</div>
{$param_filter}
<div class="clear"></div>
{if $MANUFACTURERS_DESCRIPTION}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="main" align="left">
	{$MANUFACTURERS_DESCRIPTION}
    </td>
  </tr>
</table>
{/if}

<div class="content-block">
	{if $MANUFACTURER_SORT}
	<div class="con-top gray"><div class="gt-left"></div><div class="gt-right"></div></div>
		<div class="content-block-title">
			<p>{$MANUFACTURER_SORT}</p>
		</div>
	{else}
	<div class="con-top"><div class="st-left"></div><div class="st-right"></div></div>
	{/if}
	<div class="con-cen">
		<div class="con-cen-cen">
		{foreach name=aussen item=module_data from=$module_content}
		{php}$col++;{/php}
		<div class="prod-one-col">
			{if $module_data.PRODUCTS_IMAGE}<a href="{$module_data.PRODUCTS_LINK}"><img class="prod-img" src="{$module_data.PRODUCTS_IMAGE}" /></a>{/if}
			<ul class="prod-info">
				<li class="name bold"><a href="{$module_data.PRODUCTS_LINK}">{$module_data.PRODUCTS_NAME}</a></li>
				{if $module_data.PRODUCTS_SHORT_DESCRIPTION}
				<li class="desc">{$module_data.PRODUCTS_SHORT_DESCRIPTION|os_truncate:200}</li>
				{/if}
				{if $module_data.PRODUCTS_SHIPPING_NAME}
				<li class="desc">{#text_shippingtime#} {$module_data.PRODUCTS_SHIPPING_NAME}</li>
				{/if}
				<li class="desc">{if $module_data.PRODUCTS_VPE}{$module_data.PRODUCTS_VPE} {/if}{$module_data.PRODUCTS_TAX_INFO} {$module_data.PRODUCTS_SHIPPING_LINK}</li>
			</ul>
			<div class="buy"><span class="cost bold"><em>{$module_data.PRODUCTS_PRICE}</em></span> {$module_data.PRODUCTS_BUTTON_BUY_NOW_NEW}</div>
			<div class="clear"></div>
		</div>
{if $smarty.foreach.aussen.iteration+1 gt $smarty.foreach.aussen.total}
		{php}
			// Определям сколько колонок будет на странице
			if ($col>=1) {
				$col=0;
				// Убираем .sep (border_bottom) у последних двух товаров
				echo '<div class="clear"></div>';
			}
		{/php}
{else}
		{php}
			// Определям сколько колонок будет на странице
			if ($col>=1) {
				$col=0;
				echo '<div class="clear sep"></div>';
			}
		{/php}
{/if}
		{/foreach}
		</div>
	</div>
	<div class="con-foo"><div class="sb-left"></div><div class="sb-right"></div></div>
</div>

<div class="page-navigation">
	<p class="nav">{$NAVIGATION}</p>
	<p class="desc">{$NAVIGATION_PAGES}</p>
</div>